﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GoodDotNet.Core.Model.Enum
{
    public class EnumErrorCode
    {
        public enum ErrorCode
        {
            /// <summary>
            /// 访问成功
            /// </summary>
            Sucess = 0,
            /// <summary>
            /// 一般错误
            /// </summary>

            Error = 1,
            /// <summary>
            /// 签名错误
            /// </summary>
            SignError = 2,

            /// <summary>
            /// 捕获的错误
            /// </summary>
            CatchError = 500,
            /// <summary>
            /// 没有登录
            /// </summary>
            NoLogin = 100,


            /// <summary>
            /// 没有权限
            /// </summary>
            PermissionDenied = 101,
            /// <summary>
            /// 没有数据
            /// </summary>

            NoData = 102,
            /// <summary>
            /// 刷新token出错
            /// </summary>

            TokenError = 200,
            /// <summary>
            /// 没有这个用户
            /// </summary>
            NoUser = 300,
            /// <summary>
            /// 电话号码已经有人用了
            /// </summary>
            PhoneInUse = 301,
            /// <summary>
            /// 名字已经被用了
            /// </summary>
            NameInUse = 302,
            /// <summary>
            /// 密码错误
            /// </summary>
            PwdError = 303,
        }
    }
}
